package com.chey.dao;

import com.chey.pojo.META;
import com.chey.pojo.airl.DFLT;
import com.chey.pojo.dfdl.ARPT;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author JanYao
 * @version 0.1
 */
public interface AirlDao {

    @Select("insert into DFOE_AIRL_ARPT(AIRL_ARPT_ID,APNO,APCD,FPTT,FETT,FRTT,FPLT,FELT,FRLT,APAT) values(#{uuid},#{arpt.APNO},#{arpt.APCD},#{arpt.FPTT},#{arpt.FETT},#{arpt.FRTT},#{arpt.FPLT},#{arpt.FELT},#{arpt.FRLT},#{arpt.APAT})")
    public Integer addArpt(@Param("uuid") String uuid,@Param("arpt") ARPT arpt);

    @Insert("insert into MSG_DFME_AIRL values(#{meta.sender},#{meta.receiver},#{meta.sequence},#{meta.dTime},#{meta.bType},#{meta.sType},#{dflt.FLID}, #{dflt.FIDE}, #{dflt.FFID},#{uuid})")
    public Integer add(@Param("meta") META meta,@Param("dflt") DFLT dflt,@Param("uuid") String uuid);


}
